package com.ssm.service.serviceImpl;

import com.ssm.entity.Class;
import com.ssm.mapper.ClassMapper;
import com.ssm.service.ClassService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ClassServiceImpl implements ClassService {
    private final ClassMapper classMapper;

    public ClassServiceImpl(ClassMapper classMapper) {
        this.classMapper = classMapper;
    }

    @Override
    public List<Class> findAll() {
        return classMapper.selectByExample(null);
    }
}
